#include "Game.h"



Game::Game()
{
     screen = NULL;
     running = true;
}

int Game::execute()
{
     if(init() == false)
     {
          return 1;
     }
     SDL_Event event;

     while(running)
     {
          while(SDL_PollEvent(&event))
          {
               events(&event);
          }
          loop();
          render();
          
     }
     cleanup();
     return 0;
}

int main(int argc, char **argv)
{
     Game game;
     return game.execute();
}
